﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/adminjsp/taglibs.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>任务修改</title>
		<script type="text/javascript" src="../../editors/ckeditor.js"></script>
		<script type="text/javascript" src="../../editors/_samples/sample.js"></script>
	</head>
	<body>
		<jsp:include page="top.jsp"></jsp:include>
		<div class="adminMain">
		<div class="adminLeft">
		<jsp:include page="left.jsp"></jsp:include>
		</div>
		<div class="adminRight">
		<div class="content clearfix">
	        <div class="main">
	            <!--右侧内容-->
	            <div class="cont">
	                <div class="title">任务列表</div>
	                <div class="details">
	                    <!--表格-->
	                    <form id="saveTaskInfo" method="post" action="saveTaskInfo"  ENCTYPE="multipart/form-data">
	                    <input  type="hidden" name="taskId"  id="taskId" value="${updateTaskInfo.taskId}"  />
	                    <input  type="hidden" name="oldMinPic"  id="oldMinPic" value="${updateTaskInfo.minPic}"  />
	                    <input  type="hidden" name="oldMaxPic"  id="oldMaxPic" value="${updateTaskInfo.maxPic}"  />
	                    <table class="table" cellspacing="0" cellpadding="0">
	                        <thead>
	                            <tr>
	                                <th width="15%">项目</th>
	                                <th width="85%">内容</th>
	                                
	                            </tr>
	                        </thead>
	                        <tbody>
	                            <tr>
	                                <!--这里的id和for里面的c1 需要循环出来-->
	                                <td>任务名称</td>
	                                <td><input class="rwtit" type="text" name="title" id="title" value="${updateTaskInfo.title}" onclick='this.value=""' /><i class="xing">*</i></td>
	                            </tr>
	                            <tr>
	                                <!--这里的id和for里面的c1 需要循环出来-->
	                                <td>任务分类</td>
	                                <td>
	                                <select style="border: 1px solid #ccc;width:15%;height:30px;" id="categId" name="categId">
	                                	<option value="${updateTaskInfo.taskId}">${cateName}</option>
	                                	<c:forEach var="data" items="${taskCateInfoList}" varStatus="status">
										<option value="${data.cateId}">${data.cateName}</option>
										</c:forEach>
									</select>
									<i class="xing">*</i></td>
	                            </tr>
	                            <tr>
	                                <td>任务缩略图</td>
	                                <td>
	                                <img style="width:98%;" src="../../taskUploadFile/${updateTaskInfo.minPic}"/>
	                                <input class="rwpicin" type="file" name="minPic" id="minPic" value="上传任务缩略图" onclick='this.value=""' />
	                                <i class="xing">*</i>
	                                <span class="picxz">请上传620*245像素的图</span>
	                                </td>
	                            </tr>
	                            <tr>
	                                <td>任务单数</td>
	                                <td><input class="rwdan" type="text" name="count"  id="count" value="${updateTaskInfo.count}"/>单<i class="xing">*</i></td>
	                            </tr>
	                            <tr>
	                                <td>任务大图</td>
	                                <td>
	                                <img style="width:98%;" alt="" src="../../taskUploadFile/${updateTaskInfo.maxPic}">
	                                <input class="rwpicin" type="file" name="maxPic" id="maxPic" value="上传任务大图" onclick='this.value=""' />
	                                <i class="xing">*</i>
									<span class="picxz">请上传1920*300像素的图</span>
									</td>
	                            </tr>
	                            <tr>
	                                <td>任务介绍</td>
	                                <td>
	                                    <div id='editorBox''>
	                                        <textarea name='content' cols='80' rows='6' class='input1' id="editor1">
	                                        ${updateTaskInfo.content}
	                                        </textarea>
											<script type="text/javascript">CKEDITOR.replace('editor1');</script>
	                                    </div>
	                                </td>
	                            </tr>
	                            <tr>
	                                <td>任务说明</td>
	                                <td><input class="shuom" type="textarea" id="taskDesc" name="taskDesc" value="${updateTaskInfo.taskDesc }" ></td>
	                            </tr>
	                            <tr>
	                                <td></td>
	                                <td>
	                                    <div class="bui_select">
	                                        <input type="submit" value="保存" class="add">
	                                    </div>
	                                </td>
	                            </tr>
	                            
	                        </tbody>
	                    </table>
	                    </form>
	                </div>
	            </div>
	        </div>
	      </div>
	      </div>
	      </div>
	</body>
</html>